﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rbac.Services.Admins.Dto
{
    public class CreateDto 
    {
        [Required]
        [StringLength(20)]
        public string FullName { get; set; }

        [Required]
        [StringLength(20)]
        public string UserName { get; set; }

        [StringLength(20)]
        [Required]
        public string Password { get; set; }

        [Required]
        [Compare("Password", ErrorMessage = "两次密码不一致")]
        public string ConfirmPassword { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string HeaderImage { get; set; }
    }

    public class RegisterDto: CreateDto
    {
        [Required]
        public string ValidateCode { get; set; }

    }
}
